/**
 * 字符串Set转换为用逗号拼接的字符串
 * @param {set<string>} data
 * @returns {string}
 */
export function setToJoinedStr(data: Set<string>): string {
  if (data.size <= 0) {
    return "";
  }

  const tempList = [] as any;
  for (const item of data) {
    tempList.push(item);
  }

  return tempList.join(",");
}
